package javaapplication1.view;

import java.util.List;

import javaapplication1.model.PetOwner;
import javaapplication1.dao.PetOwnerDao;
import javaapplication1.dao.oracleImpl.PetOwnerDaoOracleImpl;

public class ShowPetOwnerView {

	private static PetOwnerDao petOwnerDao = new PetOwnerDaoOracleImpl();

	public static void showPetOwner() {
		List<PetOwner> petOwnerList = petOwnerDao.retrievePetOwnerAll();
		System.out.println("******************************");
		System.out.println("宠物主人列表");
		for (int i = 0; i < petOwnerList.size(); i++) {
			System.out.println("第" + (i + 1) + "个宠物主人，名字叫："
					+ petOwnerList.get(i).getName());
		}
		System.out.println("******************************");
	}

}